package com.flyme.module.base.provider.service.impl;

import com.flyme.core.base.supper.service.impl.BaseServiceImpl;
import com.flyme.module.base.client.entity.SysVersion;
import com.flyme.module.base.client.entity.SysWorkCourse;
import com.flyme.module.base.client.enums.WorkingYearEnum;
import com.flyme.module.base.provider.mapper.SysVersionMapper;
import com.flyme.module.base.provider.mapper.SysWorkCourseMapper;
import com.flyme.module.base.provider.service.SysVersionService;
import com.flyme.module.base.provider.service.SysWorkCourseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: zyf
 * @date: 2018/10/24 16:33
 * @description:
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class SysVersionServiceImpl extends BaseServiceImpl<SysVersionMapper, SysVersion> implements SysVersionService {

    public SysVersion getVersion(String verCode) {
        return getOne(q().eq(true,"verCode", verCode).orderByDesc("verNo"), false);
    }

}
